home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Mac Power 1997 December
/
MACPOWER-1997-12.ISO.7z
/
MACPOWER-1997-12.ISO
/
AMUG
/
PROGRAMMING
/
Raven 1.2.sit
/
Raven 1.2
/
• Extras •
/
SGI STL
/
README.CodeWarrior
< prev
next >
Wrap
Text File
|
1997-07-27
|
2KB
|
51 lines
Note For CodeWarrior Users
----------------------------------------------------------------------------
Known problems
Compiling
* Using SGI's STL with MSL C++ introduces some nasty circular dependencies
between iterator.h, iostream.h, bstring.h, and algobase.h. To fix this
I've moved SGI's iostream iterator classes into a new streamiterator.h
file. You'll have to modify MSL's istream.h and ostream.h to include
this file. For example:
#if __SGI_STL // ・・・ハJDJ
#include <streamiterator.h>
#endif
* The MSL C++ library should be rebuilt so that it takes advantage of
SGI's exception safety (and to avert possible link errors). The easiest
way to do is to remove MSL C++.PPC.Lib from your project and add the
libary files to your project. These files are
complex.cpp
facet.cpp
iostream.cpp
locimp.cpp
mathlib.cpp
mlimits.cpp
iomanip.cpp
inst1.cpp
inst2.cpp.
Or you can create a new version of MSL C++.PPC.prj, change the access
paths to point to SGI, and build a new library.
* SGI expects that operator new throws when it runs out of memory (like
the C++ standard specifies). Unfortunately CodeWarrior still doesn't
do this by default. To make operator new throw you can set __throws_bad_alloc
to true (this is in new.h).
----------------------------------------------------------------------------
Migration notes
You should experience no other problems migrating from MSL STL to SGI STL.
Default allocator<T> in this adaptation should be fully functional.
----------------------------------------------------------------------------
Last updated : June 22, 1997.
Jesse Jones
jesjones@halcyon.com